getFullHostName perm no longer supported in 9.4

Hi all,

after installing v9.4 some of my scripts throw the error
"the PERM (getFullHostname) is no longer supported"
but the DXL Reference Manual that comes with 9.4 is still the 9.3 version which says:

fullHostname
Declaration
string fullHostname(void)
Operation
Gets the fully qualified hostname of the machine on which the perm is executed.

Does anybody happen to know which perm replaces the fullHostName in 9.4?

thanks
Karl
kabr - Fri Mar 15 07:22:23 EDT 2013

Re: getFullHostName perm no longer supported in 9.4
SystemAdmin - Fri Mar 15 08:10:06 EDT 2013

Hi Karl,

I don't have 9.4 available currently, but:
Perhaps this is just a typo?
getFullHostname <-> fullHostname
BR
Mike

Re: getFullHostName perm no longer supported in 9.4
llandale - Fri Mar 15 13:17:15 EDT 2013

SystemAdmin - Fri Mar 15 08:10:06 EDT 2013
Hi Karl,

I don't have 9.4 available currently, but:
Perhaps this is just a typo?
getFullHostname <-> fullHostname
BR
Mike

I see no such "getFullHostname" in v9306. I see these two give similar results.
  • print (fullHostname()) "\n"
  • print (hostname) "\n"

I see this produces [-R-E- DXL: <Line:3> the PERM (GetServerHost) is no longer supported]
  • print (getServerHost_(hostname()) "\n"

-Louie

I note with curiosity "fullHostname" must have the brackets ().

Re: getFullHostName perm no longer supported in 9.4
kabr - Mon Mar 18 05:58:37 EDT 2013

No, it's not a typo.

When I type

print(fullHostname()) "\n"


as Louie suggested,
I get

-R-E- DXL: <Line:1> the PERM (getFullHostname) is no longer supported
-I- DXL: execution halted

Re: getFullHostName perm no longer supported in 9.4
llandale - Mon Mar 18 11:05:21 EDT 2013

kabr - Mon Mar 18 05:58:37 EDT 2013

No, it's not a typo.

When I type

print(fullHostname()) "\n"


as Louie suggested,
I get

-R-E- DXL: <Line:1> the PERM (getFullHostname) is no longer supported
-I- DXL: execution halted

Several of us have parsed the DOORS.exe file and extracted ALL the valid perms. The one in question looks like this:
  • string fullHostname(void) getFullHostname

So we see there is a "fullHostname" function with "void" parameter, and returns a variable of type string. We also see there is a comment "getFullHostname" which I've seen used as a representation in the debugger, and I now see is used in this error message.

-Louie

Will someone please explain the difference between these two function definitions:
  • string fullHostname(void) {whatever}
  • string fullHostname() {whatever}

Re: getFullHostName perm no longer supported in 9.4
Mathias Mamsch - Tue Mar 19 04:13:02 EDT 2013

llandale - Mon Mar 18 11:05:21 EDT 2013
Several of us have parsed the DOORS.exe file and extracted ALL the valid perms. The one in question looks like this:

  • string fullHostname(void) getFullHostname

So we see there is a "fullHostname" function with "void" parameter, and returns a variable of type string. We also see there is a comment "getFullHostname" which I've seen used as a representation in the debugger, and I now see is used in this error message.

-Louie

Will someone please explain the difference between these two function definitions:
  • string fullHostname(void) {whatever}
  • string fullHostname() {whatever}

Louie:

 

Will someone please explain the difference between these two function definitions:
 
    string fullHostname(void) {whatever}
    string fullHostname() {whatever}



There is no difference from DXL side here. However I had some weird crash bugs with code that used the (void) parameter in function lists, so I would recommend to never use (void) parameters from DXL code. I cannot say however if this also affects the perms.

Regards, Mathias



 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

Re: getFullHostName perm no longer supported in 9.4
kabr - Tue Apr 16 07:49:39 EDT 2013

I finally got a response from Rational Client Support on this (well actually I got the reply last week, but I had to wait for the Great New Changes to be implemented).

They say, that indeed the perm getFullHostname was removed in v9.4 without a new perm replacing it.

Therefore it has to be added back in a future release.

regards

Karl